#ifndef HTTPCLIENT_H
#define HTTPCLIENT_H

#include "include/curl/curl.h"
#include "../thread/ThreadPool.h"
#include <memory>

class HttpClient
{
public:
    explicit HttpClient();
    virtual ~HttpClient();

    bool post(const std::string &url, const std::string &data);

    void response(const std::string &data);

private:
    CURL *curl;
    sh::ThreadPool threadPool;
};


#endif //HTTPCLIENT_H
